home *** CD-ROM | disk | FTP | other *** search
- {
- ***
-
- JOYSTICK.PAS
- Joystick Interface Unit for Turbo Pascal
- (C)Copyright Gerard Paul Java 1996
-
- Unit Source File
-
-
- This unit contains routines that provide Turbo Pascal with a joystick
- interface. It places the assembly-language routines in a unit to keep the
- user from declaring the external procedures manually.
-
- ***
- }
-
- {$A+,B-,D-,L-,F-,I-,N-,R-,S-,V-}
- {$L STICKRT.OBJ}
-
- unit Joystick;
-
- interface
-
- const
- DetectIDA = $0201; { Joystick detection parameters. }
- DetectIDB = $0804;
-
- function StickCoord(AxisCode: byte): word;
- function StickButtonDown(ButtonCode: byte): boolean;
- function StickIsPresent(TestBy: word): boolean;
- procedure InitAndCheckGameSys(var ErrCode: boolean);
-
- implementation
-
- function StickCoord(AxisCode: byte): word; external;
- function StickButtonDown(ButtonCode: byte): boolean; external;
- function StickIsPresent(TestBy: word): boolean; external;
- procedure InitAndCheckGameSys(var ErrCode: boolean); external;
-
- end.
-
-